home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Present…nuary (Partner) - Disc 2
/
The Apple Reference and Presentations Library (Disc 2)(January 1994).iso
/
Synergy Software
/
US English
/
KaleidaGraph™-PPC
/
Examples folder
/
Macro Source
/
Smooth
< prev
next >
Wrap
Text File
|
1993-04-14
|
1KB
|
214 lines
alpha "Smooth:"
ibase
STOa 9
;
FIX 6
;
alpha "Input Column"
STOa 0
0e+00
STO 00
;
alpha "Output Column"
STOa 1
1
STO 01
;
alpha "Window Size"
STOa 2
5
STO 02
;
RCLa 9
inpt 3
;
RCL 00
int
STO 03
1000
/
STO 10
;
RCL 01
int
STO 04
;
RCL 02
2
/
int
2
*
1
+
STO 02
;
FIX 6
;
XEQ 10
;
XEQ 80
;
STOP
;
LBL 10
size
1
-
RCL 10
+
STO 11
;
LBL 90
RCLi 11
test 1
GTO 91
test 2
GTO 91
;
LBL 92
RCLi 10
test 1
GTO 93
test 2
GTO 93
;
RTN
;
LBL 91
1
SUB 11
GTO 90
;
LBL 93
1
ADD 10
GTO 92
;
LBL 80
;
RCL 11
RCL 10
-
1.0000100017
+
int
STO 01
;
RCL 10
STO 20
;
RCL 10
int
RCL 04
1000
/
+
STO 19
;
0e+00
RCL 01
x <= y
GTO 81
;
1.000000000000001e+308
STO 23
;
LBL 98
;
RCL 20
RCL 02
2
/
int
-
STO 21
RCL 10
int
x > y
GTO 95
RCL 21
RCL 02
1
-
+
RCL 11
x < y
GTO 95
RCL 02
STO 09
0e+00
STO 00
STO 22
;
LBL 68
RCLi 21
test 1
GTO 94
test 2
GTO 94
ADD 00
1
ADD 22
LBL 94
1
ADD 21
0e+00
DSE 09
GTO 68
;
0e+00
RCL 22
x = y
GTO 99
;
RCL 02
RCL 22
x < y
GTO 97
;
RCL 00
RCL 22
/
STOi 19
STO 23
;
GTO 96
;
LBL 99
CLRi 19
;
LBL 96
1
ADD 20
ADD 19
;
0e+00
DSE 01
GTO 98
;
RTN
;
LBL 81
RTN
;
LBL 95
CLRi 19
GTO 96
;
LBL 97
RCL 23
RCL 00
RCL 22
/
x = y
GTO 99
STOi 19
STO 23
GTO 96
;
alpha "Version 1.1 - 5/11/89"
alpha "by Lonnie R. Abelbeck"
alpha "Modified - 4/14/93"
alpha "by W. T. Jones"